<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>选择器</title>
    <style>
        /* 在设置样式之前，需要先找到元素
         选择器用于查找页面中的元素
         */
        /* 1.标签选择器 */
        div {
            background-color: pink;
            /* 宽度和高度 */
            width: 600px;
            height: 250px;
        }
        span {
            color: red;
        }
    </style>
</head>
<body>
    <div>
        头部
    </div>
    <div>
        导航
    </div>
    <p>
        <!-- 行内分区 span -->
        hello <span>world</span> Lorem ipsum <span>dolor</span> sit amet, consectetur adipisicing elit. Aspernatur consequatur ea eaque eos fugiat incidunt inventore iure molestiae, mollitia nam natus necessitatibus nesciunt obcaecati officia perspiciatis tempora tempore, tenetur voluptate.
    </p>
</body>
</html>